package com.qianyucc.guishi.global;

import com.qianyucc.guishi.model.enums.*;

/**
 * @author lijing
 * @e-mail 1413979079@qq.com
 * @date 2020-01-27 19:19
 * @description 自定义异常
 */
public class GuiShiException extends RuntimeException {

    private Integer code;

    public GuiShiException(CustomizeErrorCode errorCode) {
        super(errorCode.getMessage());
        this.code = errorCode.getCode();
    }

    public Integer getCode() {
        return code;
    }
}
